using System;
using System.Collections;
using System.Collections.Generic;

using Framework.Library.Base;

namespace Framework.Library.Domain
{
    public partial class PortalRolespermision : BusinessBase<string>
    {
        #region Declarations

		private int _roleID = default(Int32);
		private int _portalID = default(Int32);
		private int _commandID = default(Int32);
		
		private bool _roleView = default(Boolean);
		private bool _roleAdd = default(Boolean);
		private bool _roleUpdate = default(Boolean);
		private bool _roleDelete = default(Boolean);
		
		
		
        #endregion

        #region Constructors

        public PortalRolespermision() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_roleView);
			sb.Append(_roleAdd);
			sb.Append(_roleUpdate);
			sb.Append(_roleDelete);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public override string Id
		{
			get
			{
				System.Text.StringBuilder uniqueId = new System.Text.StringBuilder();
				uniqueId.Append(_roleID.ToString());
				uniqueId.Append("^");
				uniqueId.Append(_portalID.ToString());
				uniqueId.Append("^");
				uniqueId.Append(_commandID.ToString());
				return uniqueId.ToString();
			}
		}
		
		public virtual int RoleID
        {
            get { return _roleID; }
			set
			{
				
				
				_roleID = value;
				
			}
        }
		
		public virtual int PortalID
        {
            get { return _portalID; }
			set
			{
				
				
				_portalID = value;
				
			}
        }
		
		public virtual int CommandID
        {
            get { return _commandID; }
			set
			{
				
				
				_commandID = value;
				
			}
        }
		
		public virtual bool RoleView
        {
            get { return _roleView; }
			set
			{
				
				_roleView = value;
				
			}
        }
		
		public virtual bool RoleAdd
        {
            get { return _roleAdd; }
			set
			{
				
				_roleAdd = value;
				
			}
        }
		
		public virtual bool RoleUpdate
        {
            get { return _roleUpdate; }
			set
			{
				
				_roleUpdate = value;
				
			}
        }
		
		public virtual bool RoleDelete
        {
            get { return _roleDelete; }
			set
			{
				
				_roleDelete = value;
				
			}
        }
		
        #endregion
    }
}
